import request from '@/utils/request'
// const Urllink = '/api/';
const Urllink = '/mock/';
// 登录
export function login(data) {
  return request({
    url:'/admin/api/login_user',
    method: 'post',
    data,
  })
}
// token
export function getTokin(data) {
  return request({
    url: Urllink + 'tokin',
    method: 'post',
    data,
  })
}
//注销退出登录
export function logout() {
  return request({
    url: Urllink + 'logout',
    method: 'post'
  })
}